Repository navigation
feat(screenshot): support selector crops on Tizen and webOS TVs - #4635
Conversation
|
The code at 1842881 looks ready, and I found no problems that need a change. Hardware pixel-identity evidence on webOS 22 and Tizen 9.0 comes from the PR body, which says it ran on the pre-rebase commit. Could you confirm that Not blocking, and you can take or leave these: runtime.test.ts:497 answers every snapshot evaluate with a canned |
1842881 to
82a054f
Compare
A Tizen or webOS TV enters as a provider-owned Android TV device, so `screenshot --crop-on` fell into the android-device cell and was refused before dispatch. Give provider-owned Android TVs their own accepted crop cell, and keep adb Android TVs, provider-owned TV emulators, and provider-owned phones in their Android cells. The crop also requires the TV plugins' cdp-dom page tree, the way a physical iPhone crop requires a CoreDevice capture. A TV page's capture scale is not its devicePixelRatio. A webOS app at 1280x720 reports a ratio of 1.5 yet captures unscaled, while a Tizen page with a 1280 meta viewport reports 1 and captures at 1.5x. Both match visualViewport.scale, so the TV snapshot publishes it as captureScale, together with its viewport. The crop scales rects by it and clips them to the page, which fills only part of a webOS capture. A TV page missing either cannot be cropped.
82a054f to
a20e4e3
Compare
|
Thanks for the review. Pushed
On the scale: yes. The fixture page prints its own
That ran on the pre-rebase build. Since then the crop path changed only in this type and in how the rounding is written, which give the same numbers. The screenshots in the description show both captures. |
Summary
screenshot --crop-onwas refused on Tizen and webOS TVs (provider-owned Android TV devices).TV captures don't follow
devicePixelRatio(webOS 1280×720 app: 1.5, unscaled, top-left; Tizen 1280 meta viewport: 1, captured at 1.5×).visualViewport.scalematches both.24 files, no linked issue. Scope expansion: TV snapshots publish
viewport(CSS px). Follow-up:--overlay-refson TVs.Validation
Evidence:
1de5b2a2con80075b641, rebased ontofdf595127asa20e4e38f(help/README conflicts); CI validates that head, whose lockfile won't install here.check:affected --run --head 1de5b2a2c: static checks, build, vitest-related (406/406) pass;unit's 6 failures also fail on unchanged base.screenshot): pixel-identical, unique match, every ±4 px shift differs.Screenshots:
Risks: TVs without
visualViewportrefuse the crop; panned-viewport refusal is hardware-untested.Two-way door. Blast radius: TV plugins.
🤖 Generated with Claude Code